package com.app.designpatternslearn.creational.abstractfactorypattern.code

fun getFactory(type: FactoryType):AbstractFactory = when(type) {
    FactoryType.COLOR -> ColorFactory()
    FactoryType.SHAPE -> ShapeFactory()
}